/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * IRegistroAnticipo.java
 *
 * Created on 26/11/2012, 02:28:17 AM
 */
package gui;

/**
 *
 * @author Administrador
 */
public class IRegistroAnticipo extends javax.swing.JInternalFrame {

    /** Creates new form IRegistroAnticipo */
    public IRegistroAnticipo() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlMain = new javax.swing.JPanel();
        lblTitulo = new javax.swing.JLabel();
        lblCentral = new javax.swing.JPanel();
        toolBarAnticipo = new javax.swing.JToolBar();
        btnGrabar = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JToolBar.Separator();
        btnCancelar = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JToolBar.Separator();
        btnImprimir = new javax.swing.JButton();
        pnlDatos = new javax.swing.JPanel();
        lblInfoGeneral = new javax.swing.JLabel();
        pnlDatosInput = new javax.swing.JPanel();
        lblFormaPago = new javax.swing.JLabel();
        cmFormaPago = new javax.swing.JComboBox();
        lblReferencia = new javax.swing.JLabel();
        txtReferencia = new javax.swing.JTextField();
        lblImporte = new javax.swing.JLabel();
        lblNroCtaBcoCliente = new javax.swing.JLabel();
        txtNroCtaBcoCliente = new javax.swing.JTextField();
        lblBancoCliente = new javax.swing.JLabel();
        txtBancoCliente = new javax.swing.JTextField();
        lblbcoPromesa = new javax.swing.JLabel();
        cmbBancoPromesa = new javax.swing.JComboBox();
        lblObservaciones = new javax.swing.JLabel();
        scrObservaciones = new javax.swing.JScrollPane();
        txtObservaciones = new javax.swing.JTextPane();
        txtImporte = new javax.swing.JFormattedTextField();

        setClosable(true);
        setIconifiable(true);
        setMaximizable(true);
        setResizable(true);
        setTitle("Registro de Anticipo de Cliente:");

        pnlMain.setLayout(new java.awt.BorderLayout());

        lblTitulo.setBackground(new java.awt.Color(175, 200, 222));
        lblTitulo.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblTitulo.setText("Registro de Anticipo de Cliente:");
        lblTitulo.setOpaque(true);
        pnlMain.add(lblTitulo, java.awt.BorderLayout.PAGE_START);

        lblCentral.setLayout(new java.awt.BorderLayout());

        toolBarAnticipo.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        toolBarAnticipo.setFloatable(false);
        toolBarAnticipo.setRollover(true);

        btnGrabar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/guardar_32.png"))); // NOI18N
        btnGrabar.setText("Grabar");
        btnGrabar.setFocusable(false);
        btnGrabar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        btnGrabar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGrabarActionPerformed(evt);
            }
        });
        toolBarAnticipo.add(btnGrabar);
        toolBarAnticipo.add(jSeparator2);

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/eliminar_24.gif"))); // NOI18N
        btnCancelar.setText("Cancelar");
        btnCancelar.setFocusable(false);
        btnCancelar.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });
        toolBarAnticipo.add(btnCancelar);
        toolBarAnticipo.add(jSeparator1);

        btnImprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/icon-imprimir.png"))); // NOI18N
        btnImprimir.setText("Imprimir comprobante");
        btnImprimir.setFocusable(false);
        btnImprimir.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        btnImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirActionPerformed(evt);
            }
        });
        toolBarAnticipo.add(btnImprimir);

        lblCentral.add(toolBarAnticipo, java.awt.BorderLayout.PAGE_START);

        pnlDatos.setLayout(new java.awt.BorderLayout());

        lblInfoGeneral.setBackground(new java.awt.Color(175, 200, 222));
        lblInfoGeneral.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblInfoGeneral.setText("Información general");
        lblInfoGeneral.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 1));
        lblInfoGeneral.setOpaque(true);
        pnlDatos.add(lblInfoGeneral, java.awt.BorderLayout.PAGE_START);

        pnlDatosInput.setBackground(new java.awt.Color(255, 255, 255));

        lblFormaPago.setText("<html>Forma de Pago <font color='red'>(*)</font></html>");

        cmFormaPago.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cmFormaPago.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmFormaPagoActionPerformed(evt);
            }
        });

        lblReferencia.setText("Referencia:");

        lblImporte.setText("Importe:");

        lblNroCtaBcoCliente.setText("Nro. Cta. Bco. Cliente:");

        lblBancoCliente.setText("Banco cliente:");

        txtBancoCliente.setEditable(false);

        lblbcoPromesa.setText("Bco. PROMESA:");

        cmbBancoPromesa.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cmbBancoPromesa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbBancoPromesaActionPerformed(evt);
            }
        });

        lblObservaciones.setText("Observaciones:");

        scrObservaciones.setViewportView(txtObservaciones);

        txtImporte.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#,##0"))));

        javax.swing.GroupLayout pnlDatosInputLayout = new javax.swing.GroupLayout(pnlDatosInput);
        pnlDatosInput.setLayout(pnlDatosInputLayout);
        pnlDatosInputLayout.setHorizontalGroup(
            pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosInputLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDatosInputLayout.createSequentialGroup()
                        .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(lblNroCtaBcoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblReferencia)
                            .addComponent(lblFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblbcoPromesa, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlDatosInputLayout.createSequentialGroup()
                                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(cmFormaPago, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtReferencia, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtNroCtaBcoCliente, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(lblBancoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lblImporte, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(txtImporte)
                                    .addComponent(txtBancoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE)))
                            .addComponent(cmbBancoPromesa, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlDatosInputLayout.createSequentialGroup()
                        .addComponent(lblObservaciones)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(scrObservaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 436, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(53, Short.MAX_VALUE))
        );

        pnlDatosInputLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {lblBancoCliente, lblFormaPago, lblImporte, lblNroCtaBcoCliente, lblObservaciones, lblReferencia, lblbcoPromesa});

        pnlDatosInputLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {cmFormaPago, txtNroCtaBcoCliente, txtReferencia});

        pnlDatosInputLayout.setVerticalGroup(
            pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosInputLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmFormaPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblReferencia)
                    .addComponent(lblImporte)
                    .addComponent(txtReferencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtImporte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNroCtaBcoCliente)
                    .addComponent(txtBancoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblBancoCliente)
                    .addComponent(txtNroCtaBcoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblbcoPromesa)
                    .addComponent(cmbBancoPromesa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlDatosInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblObservaciones)
                    .addComponent(scrObservaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(80, Short.MAX_VALUE))
        );

        pnlDatos.add(pnlDatosInput, java.awt.BorderLayout.CENTER);

        lblCentral.add(pnlDatos, java.awt.BorderLayout.CENTER);

        pnlMain.add(lblCentral, java.awt.BorderLayout.CENTER);

        getContentPane().add(pnlMain, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void btnGrabarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGrabarActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnGrabarActionPerformed

private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnCancelarActionPerformed

private void btnImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_btnImprimirActionPerformed

private void cmFormaPagoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmFormaPagoActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cmFormaPagoActionPerformed

private void cmbBancoPromesaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbBancoPromesaActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cmbBancoPromesaActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnGrabar;
    private javax.swing.JButton btnImprimir;
    private javax.swing.JComboBox cmFormaPago;
    private javax.swing.JComboBox cmbBancoPromesa;
    private javax.swing.JToolBar.Separator jSeparator1;
    private javax.swing.JToolBar.Separator jSeparator2;
    private javax.swing.JLabel lblBancoCliente;
    private javax.swing.JPanel lblCentral;
    private javax.swing.JLabel lblFormaPago;
    private javax.swing.JLabel lblImporte;
    private javax.swing.JLabel lblInfoGeneral;
    private javax.swing.JLabel lblNroCtaBcoCliente;
    private javax.swing.JLabel lblObservaciones;
    private javax.swing.JLabel lblReferencia;
    private javax.swing.JLabel lblTitulo;
    private javax.swing.JLabel lblbcoPromesa;
    private javax.swing.JPanel pnlDatos;
    private javax.swing.JPanel pnlDatosInput;
    private javax.swing.JPanel pnlMain;
    private javax.swing.JScrollPane scrObservaciones;
    private javax.swing.JToolBar toolBarAnticipo;
    private javax.swing.JTextField txtBancoCliente;
    private javax.swing.JFormattedTextField txtImporte;
    private javax.swing.JTextField txtNroCtaBcoCliente;
    private javax.swing.JTextPane txtObservaciones;
    private javax.swing.JTextField txtReferencia;
    // End of variables declaration//GEN-END:variables
}
